<section class="content">
	<div class="row">
		<div class="col-md-12">
			<div class="box box-info">
				<div class="box-header with-border">
					<div class="form-inline">
						<div v-cloak>
							<div class="guige">
								<div class="guige-right">
									<div class="guige-list" v-if="guige.length != 0" v-for="(v,k) in guige" :key="k">
										<input type="hidden" name="goods_id" v-model="goods_id">
										<div class="guige-list-top">
											<input class="guige-list-top-ipt" type="text" v-model="v.title">
											<el-button type="primary" @click="addItem(k,v.title)">添加属性</el-button>
											<el-button style="width: 25px;" type="danger" @click="delGuige(k)">X</el-button>

										</div>
										<div class="guige-list-bototm" v-if="v.list.length!=0">
											<div class="guige-list-bototm-item" v-for="(v9,k9) in v.list" @click="shangchuan(k,k9)">
												<input type="text" v-model="v.list[k9].name">
												<el-upload class="avatar-uploader" name="imgs" action="<?=$root?>/api/uploads" :show-file-list="false"
														   :on-success="handleAvatarSuccess" :on-progress="loading">
													<img v-if="v9.thumb" :src="'<?=$root?>/uploads/' + v9.thumb" class="avatar">
													<i v-else class="avatar-uploader-icon"> </i>
												</el-upload>
												<img class="img-btn-del" src="/vendor/sku/js/lishijilu_shanchu.png" alt=""  @click="delItem(k,k9)">
											</div>
										</div>
									</div>

									<div class="btns">
										<el-button type="primary" @click="addGuige"> 添加规格</el-button>
										<el-button type="success" @click="f5"> 生成表格</el-button>
									</div>

									<div class="table-list">
										<div class="table-top">
											<p v-for="(v,k) in guige" :key="k+v">@{{v.title}}</p>
											<p v-for="(v,k) in nav" :key="k">@{{v.name}}</p>
										</div>
										<div class="table-bottom" v-for="(v,k) in tableData" :key="k">

											<input type="text" v-for="(vi,ki) in v" :key="ki" v-model="vi.name">

										</div>

									</div>
									<el-button type="success" @click="send"> 提交表格</el-button>
								</div>
							</div>
						</div>

					</div>
				</div>
				<div class="box-body table-responsive">

				</div>
				<!-- /.box-footer -->
			</div>
		</div>
	</div>

</section>
